home *** CD-ROM | disk | FTP | other *** search
/ Aminet 43 / Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso / Aminet / dev / basic / clockita.readme < prev    next >
Encoding:
Text File  |  2001-05-03  |  12.8 KB  |  211 lines

  1. Short:        Italian clock+alarm+source code (bugfix)
  2. Author:       stefano.regattin@tin.it (Stefano Regattin)
  3. Uploader:     stefano.regattin@tin.it (Stefano Regattin)
  4. Type:         dev/basic
  5. Distribution: OK
  6.  
  7. Date: Thursday, 8th March 2001
  8. Name of the program: Orologio (clock)
  9. This is an italian evolution of the example program "Clock.bb" supplied with
  10. Blitz2.
  11. There is a bug in the Blitz2 language that gives erroneous date after the end of
  12. the year 2000; this upload is my solution for this bug!
  13. The bug is in the date functions Days, Months and Years; WeekDay works fine!
  14. You can change the clock font by activating the window and clicking the LEFT
  15. MOUSE BUTTON; in this case you will see a new window containing some string
  16. gadgets: the top-left gadget must be used to type the alarm's hour and mins; the
  17. next gadget at the right must be used to activate or to deactivate the alarm;
  18. the below gadget must be used to select the font: type the name of the font
  19. (with or without the ".font" suffix) that you know it resides in your FONTS:
  20. drawer; pressing RIGHTAMIGA-X keys you will clean the gadget; pressing
  21. subsequently the ENTER key you will be able to see all fonts that resides in
  22. your FONTS: drawer and you will can select one of these.
  23. In this case the last gadget at top-right will show the height of the font you
  24. have selected and always you will can modify it.
  25. The following two gadgets are for type into the coordinates of the top-left
  26. corner of the clock window.
  27. The four arrows box named "Angolo fisso" is for select the fixed angle: this
  28. angle (normally the top-left angle) will be ever locked on screen, giving the
  29. other three to change their position depending on the settings; the coordinates
  30. you type and save are related to this one; remember this when you change the
  31. coordinates and/or the angle by tooltypes (see below).
  32. The following two gadgets are to type into the coordinates of the bottom-right
  33. corner of the clock window; the possible combinations of the four gadgets for
  34. the top-left and for the bottom-right coordinates are shown as four arrows in
  35. the gadget previously described and are: TOP-LEFT (standard), TOP-RIGHT,
  36. BOTTOM-RIGHT and BOTTOM-LEFT.
  37. The "Colori" gadget opens a new window to select the text colour and background
  38. colour for the clock: point with the mouse pointer on a colour, and click the
  39. LEFT MOUSE BUTTON to choose it as text colour, or click the RIGHT MOUSE BUTTON
  40. to choose it as background colour.
  41.  
  42. Note that you cannot select the same colour as text colour and background
  43. colour.
  44. The "*** Salva ***" gadget permits to save any change.
  45. You can specify the font name, the font size, the coordinates of the position of
  46. the main window, the related angle, the text colour and the background colour by
  47. tooltypes; when the program is launched if there are the tooltypes the
  48. informations are taken from these, otherwise the parameters are set to default.
  49. For who don't know, tooltypes are those parameters shown in the icon
  50. information  window that is shown if you select the voice INFORMATION of the
  51. ICON menu.
  52. If there is no tooltype DONOTWAIT, when you save the changes it will be added.
  53. If you have activated the alarm, in the clock window will be shown a bubble;
  54. you can deactivated it pointing with the pointer on the bubble and clicking with
  55. the LEFT MOUSE BUTTON.
  56. The default font is "Data70.font", a font made by me supplied with the
  57. program.
  58. I think that this font is better than the font "2001.font" supplied with AMOS
  59. Pro.
  60. My font is suited for italian language, for which the character "è" capital is
  61. obtainable with the "§" character; however it have all the chars from (ASCII) 32
  62. to 255 now!
  63. Use it for games in low resolution, it is better! How to install the "Data70"
  64. font: copy in your drawer "FONTS:" the file named "Data70.font".
  65. Create in your drawer "FONTS:" the drawer "Data70" and copy into it the file
  66. "13".
  67. If you have Blitz2 There is the source code (Orologio.bb2) for free
  68. modifications; if you don't have it, you can however analyze the source code by
  69. a text viewer like MultiView reading the file named "Orologio.text"; if you
  70. load the source code in Blitz2 and you see some "?????" instead of keywords, you
  71. cannot compile the program because your "deflibs" file do not have all the
  72. keywords needed: you can find a sufficiently updated deflibs file in the
  73. package "Blitz Support Suite", that was sold alone on three diskettes ("BSS1",
  74. "BSS2" and  "BSS3"), that now are part of the "Ultimate Blitz Basic" CD, that
  75. is sold in the UK by Epic Marketing (http://www.epicmarketing.ltd.net).
  76. If you want to install by yourself the keywords needed, you must have all
  77. the libs in BlitzLibs: and the command for AmigaDOS "MakeDefLibs" from Blitz
  78. Support Suite; after this you can run from shell the command MakeDefLibs with no
  79. parameters, that it will build up a new deflibs file from your libs in DefLibs:,
  80. backing up the previously one.
  81. The executable icon is a ColorIcon (OS3.5) taken from the archive
  82. ReallyIcons.lha by Angel Schnider.
  83. Notes: I have removed a previous version bug of gadget garbages in the settings
  84. window that it occurred after the font was changed and then the settings window
  85. was recalled; now there are problems no more.
  86. I have corrected a defect of a previous version that it happens if you have
  87. deactivated the alarm clicking on the bubble: the alarm gadget in the settings
  88. window did not deselect automatically; now the problem is solved.
  89. Now The clock use your workbench presetted sound not only for the alarm, but
  90. also to count the hours when these change.
  91. I am not responsible of any damage this program can occurs to your system; you
  92. use it at your own risk!
  93. At end see my home page to the Internet address:
  94. http://members.tripod.it/esseerre/Stefano.html
  95. Many wishes to all the women on the web!
  96. The following is the same text in italian.
  97.  
  98. Data: giovedì, 8 marzo 2001
  99. Nome del programma: Orologio
  100. Questa è un'evoluzione italiana del programma d'esempio "Clock.bb" fornito con
  101. Blitz2.
  102. C'è un baco nel linguggio Blitz2 che dà una data errata dopo la fine dell'anno
  103. 2000; questo caricamento è la mia soluzione per questo baco!
  104. Il baco è nelle funzioni per la data Days, Months and Years; WeekDay và bene!
  105. Potete cambiare il font dell'orologio attivando la finestra e cliccando con il
  106. TASTO SINISTRO DEL MOUSE; in questo caso vedrete una nuova finestra contenente
  107. alcuni campi per l'immissione di testo: il campo in alto a sinistra deve essere
  108. usato per digitare l'ora ed i minuti dell'allarme; il campo successivo a destra
  109. deve essere usato per attivare o disattivare l'allarme; il campo seguente in
  110. basso deve essere usato per selezionare il font; digitate il nome del font (con
  111. o senza il suffisso ".font") che sapete che si trova nel vostro cassetto FONTS:;
  112. premendo i tasti AMIGA-destro e X pulirete il campo; premendo successivamente il
  113. tasto ENTER sarete in grado di vedere tutti i font che si trovano nel vostro
  114. cassetto FONTS: e potrete selezionarne uno; in questo caso il campo in alto a
  115. destra mosterà l'altezza del font selezionato che potrete sempre modificare.
  116. I seguenti due campi in basso servono per impostare le coordinate dell'angolo in
  117. alto a sinistra della finestra dell'orologio.
  118. Il quadrato con dentro quattro freccie serve per la selezione dell'angolo fisso:
  119. questo angolo (solitamente l'angolo in alto a sinistra) rimarrà fisso sullo
  120. schermo, lasciando liberi gli altri tre di cambiare la loro posizione a seconda
  121. dei parametri; le coordinate che digitate e che salvate sono relative a questo
  122. angolo; ricordavetelo quando cambiate le coordinate e/o l'angolo dai tooltype
  123. (vedi di seguito).
  124. I seguenti due campi in basso servono per impostare le coordinate dell'angolo in
  125. basso a destra della finestra dell'orologio; le combinazioni possibili dei campi
  126. per le coordinate dell'angolo in alto a sinistra e per quello in basso a destra
  127. sono mostrate come freccie nel quadrato prcedentemente descritto e sono
  128. rispettivamente: l'angolo in alto a sinistra (TOP-LEFT), che è la condizione
  129. normale, l'angolo in alto a destra (TOP-RIGHT), l'angolo in basso a destra
  130. (BOTTOM-RIGHT) e l'angolo in basso a sinistra (BOTTOM-LEFT).
  131. Il bottone "Colori" apre una nuova finestra per la selezione dei colori del
  132. testo e dello sfondo: puntate con il puntatore del mouse su un colore, e
  133. cliccate il TASTO SINISTRO DEL MOUSE per sceglierlo come colore del testo, o
  134. cliccate con il TASTO DESTRO DEL MOUSE per sceglierlo come colore di sfondo;
  135. notate che non potete selezionare lo stesso colore per il testo e per lo sfondo.
  136. Il bottone "*** Salva ***" permette di salvare ogni cambiamento.
  137. Potete specificare il nome del font, l'altezza del font, le coordinate della
  138. posizione della finestra principale, l'angolo relativo, il colore del testo ed
  139. il colore dello sfondo con i tooltype; quando lanciate il programma se ci sono i
  140. tooltype le informazioni vengono prese da questi, altrimenti i parametri sono
  141. impostati ai valori di default.
  142. Per chi non lo sapesse, i tooltype sono quei parametri mostrati nella finestra
  143. delle informazioni dell'icona che esce se selezionate la voce INFORMAZIONI dal
  144. menù ICONE.
  145. Se non c'è il tooltype DONOTWAIT, verrà aggiunto quando salverete i cambiamenti.
  146. Se avete attivato l'allarme, nella finestra dell'orologio comparirà una bolla;
  147. potete disattivarlo in qualsiasi momento portando il puntatore del mouse sulla
  148. stessa e cliccando con il TASTO SINISTRO DEL MOUSE.
  149. Il font di default è "Data70.font", un font fatto da me fornito col programma.
  150. Io credo che questo font sia migliore del font "2001.font" fornito con AMOS Pro.
  151. Il mio font è adattato per la lingua italiana, per la quale il carattere "è"
  152. maiscolo è ottenibile con il carattere "§"; comunque ha tutti i caratteri dal
  153. (ASCII) 32 al 255; usatelo in giochi a bassa risoluzione, rende meglio!
  154. Come installare il font "Data70": copiate nel vostro cassetto "FONTS:" il file
  155. "Data70.font". Create nel vostro cassetto "FONTS:" il cassetto "Data70" e
  156. copiatevi il file "13".
  157. Se avete Blitz2 c'è il codice sorgente (Orlogio.bb2) per libere modifiche; se
  158. non lo avete, potete lo stesso analizzare il codice sorgente leggendo con un
  159. visualizzatore di testi come MultiView il file "Orologio.text"; se voi caricate
  160. il codice sorgente in Blitz2 e vedete dei "?????" al posto dei comandi, non
  161. potete compilare il programma perché il vostro file "deflibs" non ha tutti i
  162. comandi richiesti; potrete trovare un file deflibs aggiornato nel pacchetto
  163. "Blitz Support Suite", che era venduto a parte su tre dischetti ("BSS1", "BSS2"
  164. e "BSS3"), che ora sono parte del CD "Ultimate Blitz Basic", venduto in Italia
  165. da NonSoLoSoft (http://www.diff.org/nonsolosoft); se volete installare da soli i
  166. comandi necessari, dovete avere tutte le librerie in BlitzLibs: ed il comando
  167. per l'AmigaDOS "MakeDefLibs" dal pacchetto Blitz Support Suite; dopo di ciò
  168. potete eseguire il comando MakeDefLibs senza parametri da shell, che creerà un
  169. nuovo file deflibs usando le vostre librerie in DefLibs:, conservando il file
  170. deflibs precedente.
  171. L'icona dell'eseguiblie e un'icona ColorIcon (OS3.5) presa dall'archivio
  172. ReallyIcons.lha di Angel Schnider.
  173. Note: ho rimosso il problema di una precedente versione che creava dei campi
  174. sbagliati nella finestra dei parametri, il che avveniva dopo che il font veniva
  175. cambiato e veniva richiamata la finestra stessa; ora non ci sono più problemi.
  176. Ho corretto il difetto di una precedente versione che si verificava se si
  177. disattivava l'allarme cliccando sulla bolla: il bottone per la selezione
  178. dell'allarme nella finestra delle impostazioni non si deselezionava
  179. automatcamente; ora il problema è risolto.
  180. Ora l'orologio usa il suono preimpostato del workbench non solo per l'allarme,
  181. ma anche per contare le ore quando cambiano.
  182. Non sono responsabile dei danni che questo programma può arrecare al vostro
  183. sistema, lo usate a vostro esclusivo rischio!
  184. Per finire guardate la mia pagina su Internet all'indirizzo:
  185. http://members.tripod.it/esseerre/Stefano.html
  186. Tanti auguri a tutte le donne sul web!
  187.  
  188. Ciao!
  189.  
  190.  
  191. ============================= Archive contents =============================
  192.  
  193. Original  Packed Ratio    Date     Time    Name
  194. -------- ------- ----- --------- --------  -------------
  195.     2250     802 64.3% 08-Mar-01 19:13:50  Fonts.info
  196.      264      29 89.0% 30-Dec-00 11:08:24 +Data70.font
  197.     1385     871 37.1% 21-Jan-01 03:42:18 +Data70.font.info
  198.     2250     801 64.4% 21-Jan-01 03:43:06 +Data70.info
  199.     4016    1822 54.6% 30-Dec-00 11:08:24 +13
  200.     1385     867 37.4% 21-Jan-01 03:43:06 +13.info
  201.     1103     336 69.5% 22-May-00 22:33:46  InstallFont.Execute
  202.     1987     687 65.4% 08-Mar-01 19:13:48  InstallFont.Execute.info
  203.    90412   39989 55.7% 31-Jan-01 23:05:04  Orologio
  204.    22596    5040 77.6% 31-Jan-01 23:05:18  Orologio.bb2
  205.     1448     991 31.5% 08-Mar-01 19:13:50  Orologio.bb2.info
  206.    10981    9338 14.9% 08-Mar-01 19:13:50  Orologio.info
  207.    26359    5463 79.2% 08-Mar-01 19:42:56  Orologio.text
  208.     1184     752 36.4% 08-Mar-01 19:13:50  Orologio.text.info
  209. -------- ------- ----- --------- --------
  210.   167620   67788 59.5% 10-Mar-101 12:37:00   14 files
  211.